/*
 * @Descripttion:  
 * @version:  
 * @Author: chenxf
 * @Date: 2022-05-06 10:24:53
 */
import { getAction, putAction, postAction } from '@/api/manage'
import { serviceApi } from '@/api/common.js'
export const api = {
  list: serviceApi.dict + '/dicts/items',
  delete: (ids) => `${serviceApi.dict}/dicts/items/${ids}`
}

/**
 * 添加字典明细
 * @param {*} params
 * @returns
 */
export const addDictItem = params => postAction(serviceApi.dict + '/dicts/items', params);
/**
 * 编辑字典明细
 * @param {*} params
 * @returns
 */
export const editDictItem = params => putAction(serviceApi.dict + '/dicts/items', params);

/**
 * 编辑字典明细
 * @param {*} params
 * @returns
 */
export const dictItemCheck = params => getAction(serviceApi.dict + '/dicts/items/check-dict-item', params);
